<!--
<div id="left">
	Categories
	<div class="new-item"><a href="<?php echo site_url('admin/newCategory'); ?>">Add Category</a></div>
	<ul>		
		<?php 
			foreach($categories as $category)
			{
				echo '<li>'.$category['category'].'</li>';
			}
		?>
	</ul>
</div>
-->
<!--
<div id="new_content">
-->
	<h2>Add New Product</h2>
	<?php echo form_open_multipart('admin/newProduct'); ?>
	<table>
		<tr>
			<td>Product: </td>
			<td><input type="text" name="name" value=""/></td>
		</tr>
		<tr>
			<td>Category: </td>
			<td>
				<select name="category_id">
				<option value="0">--all--</option>
				<?php 
					foreach($categories as $category)
					{
				?>
					<option value="<?php echo $category['id']; ?>"><?php echo $category['category']; ?></option>
				<?php
					}
				?>
				</select>
			</td>
		</tr>		
		<tr>
			<td>Image: </td>
			<td><input type="file" name="image" size="20"/></td>
		</tr>
		<tr>
			<td>Image 1: </td>
			<td><input type="file" name="image1" size="20"/></td>
		</tr>
		<tr>
			<td>Image 2: </td>
			<td><input type="file" name="image2" size="20"/></td>
		</tr>
		<tr>
			<td>Image 3: </td>
			<td><input type="file" name="image3" size="20"/></td>
		</tr>
		<tr>
			<td>Image 4: </td>
			<td><input type="file" name="image4" size="20"/></td>
		</tr>
		<tr>
			<td>Price: </td>
			<td><input type="text" name="price" value=""/></td>
		</tr>
		<tr>
			<td>Quantity: </td>
			<td>
				<input type="text" name="quantity" value="1" length="20">
			</td>
		</tr>
		<tr>
			<td>Origin: </td>
			<td>
				<input type="text" name="origin" value="Chính hãng" length="20">
			</td>
		</tr>
		<tr>
			<td>Warranty: </td>
			<td>
				<input type="text" name="warranty" value="12" length="20">
			</td>
		</tr>
		<tr>
			<td>Status: </td>
			<td>
				<input type="text" name="status" value="Mới" length="20">
			</td>
		</tr>
		<tr>
			<td colspan="2">Desc: </td>
		</tr>
		<tr>			
			<td colspan="2">
				<textarea cols="40" rows="10" name="desc" id="editor1">

				</textarea>
			</td>
			<script type="text/javascript">
			//<![CDATA[

				CKEDITOR.replace( 'editor1',
					{
						fullPage : true,
						extraPlugins : 'docprops'
					});

			//]]>
			</script>
		</tr>
		<tr>
			<td colspan="2">Detail: </td>
		</tr>
		<tr>			
			<td colspan="2">
				<textarea cols="40" rows="10" name="detail" id="editor2">

				</textarea>
			</td>
			<script type="text/javascript">
			//<![CDATA[

				CKEDITOR.replace( 'editor2',
					{
						fullPage : true,
						extraPlugins : 'docprops'
					});

			//]]>
			</script>
		</tr>
		<tr>
			<td>Products Related: </td>
			<td>
				<input type="text" name="product_relate" value="" length="20">
			</td>
		</tr>		
		<tr>
			<td colspan="2" align="center">
				<input type="submit" name="submitBtn" value="Submit">
				<input type="reset" name="resetBtn" value="Reset">
			</td>
		</tr>
	</table>
	</form>
<!--	
</div>
-->